xen/x86: report domain id on cpuid
authorRoger Pau Monne <roger.pau@citrix.com>
Thu, 11 Jan 2018 17:47:58 +0000 (17:47 +0000)
committerWei Liu <wei.liu2@citrix.com>
Tue, 16 Jan 2018 18:34:04 +0000 (18:34 +0000)
commit021e1b7c7a70c71f09c944d3e539dbf476fe48d9
treeeb1a5660e97dcf228aee6770ae1e805e5530d43d
parentb7af6be266e3595d7fb925f6156d6732dc456df6
xen/x86: report domain id on cpuid

Use the ECX register of the hypervisor leaf 5. The EAX register on
this leaf is a flags field that can be used to notice the presence of
the domain id in ECX. Note that this is only available to HVM guests.

Signed-off-by: Roger Pau Monné <roger.pau@citrix.com>
xen/arch/x86/traps.c
xen/include/public/arch-x86/cpuid.h